<?php

namespace Home\Controller;

use Think\Controller;

class IndexController extends Controller
{
    public function index()
    {

        //  导航标题

        $model_sort = D('sort');
        $sorts = $model_sort->query("SELECT * FROM sort");
        $this->assign('sorts', $sorts);


        //  所有商品

        $model_goods = D('goods');
        $good_es = $model_goods->query("SELECT * FROM goods");
        $this->assign('good_es', $good_es);


         // 友情链接

        $model_link = D('link');
        $links = $model_link->query("SELECT * FROM link");
        $this->assign('links', $links);

        $this->display();
    }

}